package com.hzg.springcloud.fegin.hystrix;

import com.hzg.springcloud.domain.Product;
import com.hzg.springcloud.fegin.IProductFeignApi;
import org.springframework.stereotype.Component;

@Component
public class ProductFeignHystrix implements IProductFeignApi {
    @Override
    public Product get(Long id) {
        System.out.println("走降级方法了。。ProductFeignHystrix。。");
        Product product = new Product();
        product.setName("降级方法:默认对象");

        return product;
    }
}